import request from "@/utils/request.js";

export default {
  //发送验证码
  sendMsg(data) {
    return request.request({
      url: "/user/sendMsg",
      method: "post",
      data
    });
  },

  //登录
  loginVerification(data) {
    return request.request({
      url: "/user/loginVerification",
      method: "post",
      data
    });
  },

  //获取昵称
  getNickName(data) {
    return request.request({
      url: "/information/getNickName",
      method: "get",
      data
    });
  },

  //获取家乡
  ObtainHometown(data) {
    return request.request({
      url: "/information/ObtainHometown",
      method: "get",
      data
    });
  },

  //获取学校
  getSchoolName(data) {
    return request.request({
      url: "/information/getSchoolName",
      method: "get",
      data
    });
  },

  //完善个人信息
  loginReginfo(data) {
    return request.request({
      url: "/user/loginReginfo",
      method: "post",
      data
    });
  },

  //根据生日获取星座
  getConstellation(data) {
    return request.request({
      url: "/information/getConstellation",
      method: "get",
      data
    });
  },

  //字典
  getOpenScreenMsg(data) {
    return request.request({
      url: "/config/getOpenScreenMsg",
      method: "get",
      data
    });
  },

  //获取标签
  getAllTags(data) {
    return request.request({
      url: "/information/getAllTags",
      method: "get",
      data
    });
  },

  //智能联想
  dashScope(data) {
    return request.request({
      url: "/information/dashScope",
      method: "get",
      data
    });
  },

  //身份证核验
  idCardVerification(data) {
    return request.request({
      url: "/information/idCardVerification",
      method: "post",
      data
    });
  },

  //自定义标签
  setTags(data) {
    return request.request({
      url: "/information/setTags",
      method: "get",
      data
    });
  },

  //查询弹幕
  queryBarrage(data) {
    return request.request({
      url: "/comments/queryBarrage",
      method: "get",
      data
    });
  },

  //查询用户信息
  getUserInfo(data) {
    return request.request({
      url: "/user/getUserInfo",
      method: "get",
      data
    });
  },

  //发布弹幕
  sendBarrage(data) {
    return request.request({
      url: "/movements/sendBarrage",
      method: "post",
      data
    });
  },

  //计算发送弹幕数量
  getSendBarrageCount(data) {
    return request.request({
      url: "/movements/getSendBarrageCount",
      method: "get",
      data
    });
  },

  //查询在线用户数
  queryUserOnline(data) {
    return request.request({
      url: "/user/queryUserOnline",
      method: "get",
      data
    });
  },

  //更新用户是否在线
  UpdateUserByToken(data) {
    return request.request({
      url: "/user/UpdateUserByToken",
      method: "get",
      data
    });
  },

  //查看发布弹幕人简介
  sceenIntroduction(data) {
    return request.request({
      url: "/comments/sceenIntroduction",
      method: "get",
      data
    });
  },

  //评论点赞
  like(data) {
    return request.request({
      url: `/comments/${data}/like`,
      method: "get",
      data
    });
  },

  //取消点赞
  dislike(data) {
    return request.request({
      url: `/comments/${data}/dislike`,
      method: "get",
      data
    });
  },

  //今日良缘
  getTodayGoodFate(data) {
    return request.request({
      url: `/todayGoodFate/getTodayGoodFate`,
      method: "get",
      data
    });
  },

  //查询零距互联轮播
  getBanner(data) {
    return request.request({
      url: `/banner/getBanner`,
      method: "get",
      data
    });
  },

  //关注
  contacts(data) {
    return request.request({
      url: `/messages/contacts`,
      method: "post",
      data
    });
  },

  //查询当前用户信息
  getUserOneSelfInfo(data) {
    return request.request({
      url: `/user/getUserOneSelfInfo`,
      method: "get",
      data
    });
  },

  //查看是否关注
  attentionToIt(data) {
    return request.request({
      url: `/messages/attentionToIt`,
      method: "post",
      data
    });
  },

  //取消关注
  userUnFocus(data) {
    return request.request({
      url: `/messages/userUnFocus`,
      method: "post",
      data
    });
  },

  //关注被关注动态数
  getNumber(data) {
    return request.request({
      url: `/comments/getNumber`,
      method: "get",
      data
    });
  },

  //查询动态
  movements(data) {
    return request.request({
      url: `/movements/all`,
      method: "get",
      data
    });
  },

  //查询活动
  activity(data) {
    return request.request({
      url: `/activity/queryActivity`,
      method: "get",
      data
    });
  },

  //修改活动状态
  updateActivityStatus(data) {
    return request.request({
      url: `/activity/updateActivityStatus`,
      method: "get",
      data
    });
  },

  //活动日历
  queryActivityByDate(data) {
    return request.request({
      url: `/activity/queryActivityByDate`,
      method: "get",
      data
    });
  },

  //立即预约
  reservation(data) {
    return request.request({
      url: `/activity/reservation`,
      method: "get",
      data
    });
  },

  //活动城市
  getActivityCity(data) {
    return request.request({
      url: `/activity/getActivityCity`,
      method: "get",
      data
    });
  },

  //活动详情
  getActivityInfo(data) {
    return request.request({
      url: `/activity/getActivityInfo`,
      method: "get",
      data
    });
  },

  //查询推荐动态信息
  recommend(data) {
    return request.request({
      url: `/movements/recommend`,
      method: "get",
      data
    });
  },

  //查询动态评论
  comments(data) {
    return request.request({
      url: `/comments`,
      method: "get",
      data
    });
  },

  //发布评论
  sendComments(data) {
    return request.request({
      url: `/comments`,
      method: "post",
      data
    });
  },

  //查詢同城好友动态信息
  recommendSameCity(data) {
    return request.request({
      url: `/movements/recommendSameCity`,
      method: "get",
      data
    });
  },

  //查詢同城好友动态信息
  recommendFollow(data) {
    return request.request({
      url: `/movements/recommendFollow`,
      method: "get",
      data
    });
  },

  //动态详情
  movementsDetails(data) {
    return request.request({
      url: `/movements/${data}`,
      method: "get",
      data
    });
  },

  //动态点赞
  movementsLike(data) {
    return request.request({
      url: `/movements/${data}/like`,
      method: "get",
      data
    });
  },

  //取消动态点赞
  movementsDisLike(data) {
    return request.request({
      url: `/movements/${data}/dislike`,
      method: "get",
      data
    });
  },

  //网易信息
  getIMinfo(data) {
    return request.request({
      url: `/messages/getUserWYInfo`,
      method: "get",
      data
    });
  },

  //违禁词
  prohibitedWords(data) {
    return request.request({
      url: `/movements/prohibitedWords`,
      method: "post",
      data
    });
  },

  //查询所有话题
  queryAllTopic(data) {
    return request.request({
      url: `/topic/queryAllTopic`,
      method: "get",
      data
    });
  },

  //发布动态
  publishuUpdates(data) {
    return request.request({
      url: `/movements`,
      method: "post",
      data
    });
  },

  //查询联系人
  getContacts(data) {
    return request.request({
      url: `/messages/contacts`,
      method: "get",
      data
    });
  },

  //默认话题
  getDefaultTopic(data) {
    return request.request({
      url: `/topic/getDefaultTopic`,
      method: "get",
      data
    });
  },

  //话题详情
  recommendTopic(data) {
    return request.request({
      url: `/movements/recommendTopic`,
      method: "get",
      data
    });
  },

  //话题详情
  getDefaultTopicInfo(data) {
    return request.request({
      url: `/topic/getDefaultTopicInfo`,
      method: "get",
      data
    });
  },

  //关注话题
  topicContacts(data) {
    return request.request({
      url: `/topic/contacts`,
      method: "post",
      data
    });
  },

  //取消关注话题
  topicUnFocus(data) {
    return request.request({
      url: `/topic/topicUnFocus`,
      method: "post",
      data
    });
  },

  //查询用户信息
  queryInfo(data) {
    return request.request({
      url: `/userDescribe/userDescribe/queryInfo`,
      method: "get",
      data
    });
  },

  //查询用户上传图
  queryUserPic(data) {
    return request.request({
      url: `/user/loginReginfo/queryUserPic`,
      method: "get",
      data
    });
  },

  //上传用户信息
  saveInfo(data) {
    return request.request({
      url: `/userDescribe/userDescribe/saveInfo`,
      method: "post",
      data
    });
  },

  //删除照片
  delUserPic(data) {
    return request.request({
      url: `/user/loginReginfo/delUserPic`,
      method: "get",
      data
    });
  },

  //删除录音
  delSound(data) {
    return request.request({
      url: `/userDescribe/userDescribe/delSound`,
      method: "get",
      data
    });
  },

  //退出登录
  logout(data) {
    return request.request({
      url: `/user/logout`,
      method: "get",
      data
    });
  },

  //实名认证查询
  userRealInfo(data) {
    return request.request({
      url: `/userReal/userRealInfo`,
      method: "get",
      data
    });
  },

  //验证身份证和姓名是否正确
  realNameAuthentication(data) {
    return request.request({
      url: `/userReal/realNameAuthentication`,
      method: "post",
      data
    });
  },

  //获取用户绑定的手机号
  getUserMobile(data) {
    return request.request({
      url: `/user/queryMobile`,
      method: "get",
      data
    });
  },

  //验证原手机号验证码是否正确
  checkCode(data) {
    return request.request({
      url: `/user/checkCode`,
      method: "get",
      data
    });
  },

  //修改手机号
  updatePhone(data) {
    return request.request({
      url: `/user/updatePhone`,
      method: "post",
      data
    });
  },

  //查询用戶配置
  selectAll(data) {
    return request.request({
      url: `/userProfile/selectAll`,
      method: "get",
      data
    });
  },

  //根据id修改配置
  updateById(data) {
    return request.request({
      url: `/userProfile/updateById`,
      method: "get",
      data
    });
  },

  //新增访客记录
  addVisitor(data) {
    return request.request({
      url: `/messages/addVisitor`,
      method: "get",
      data
    });
  },

  //查询用户信息以及关注 访客 活动数量
  queryInfoPlus(data) {
    return request.request({
      url: `/myInfo/queryInfoPlus`,
      method: "get",
      data
    });
  },

  //修改用户恋爱状态
  updateLoveStatus(data) {
    return request.request({
      url: `/user/updateLoveStatus`,
      method: "get",
      data
    });
  },

  //首页推荐用户
  recommendFriend(data) {
    return request.request({
      url: `/movements/recommendFriend`,
      method: "get",
      data
    });
  },

  //检查当天是否签到
  todaySignIn(data) {
    return request.request({
      url: `/sign-in/check/${data}`,
      method: "get",
      data
    });
  },

  //检查周期内的签到情况
  historySignIn(id, data) {
    return request.request({
      url: `/sign-in/history/${id}`,
      method: "get",
      data
    });
  },

  //签到
  signIn(data) {
    return request.request({
      url: `/sign-in/${data}`,
      method: "post",
      data
    });
  },

  //判断是否需要完善数据
  isAuth(data) {
    return request.request({
      url: `/myInfo/isAuth`,
      method: "get",
      data
    });
  },

  //获取跑马灯的数据
  getIndexScreenDetail(data) {
    return request.request({
      url: `/OpenScreenDetails/getIndexScreenDetail`,
      method: "get",
      data
    });
  },

  //获取跑马灯的数据
  oneClickLogin(data) {
    return request.request({
      url: `/user/oneClickLogin`,
      method: "post",
      data
    });
  },

  //置顶活动
  getTopActivity(data) {
    return request.request({
      url: `/activity/getTopActivity`,
      method: "get",
      data
    });
  },

  //投票列表
  voteList(data) {
    return request.request({
      url: `/api/front/vote/list`,
      method: "get",
      data
    });
  },

  //作品打分
  voteMark(data) {
    return request.request({
      url: `/api/front/vote/mark`,
      method: "post",
      data
    });
  },

  //投票主题下拉
  themeOption(data) {
    return request.request({
      url: `/api/front/vote/theme/option`,
      method: "get",
      data
    });
  },

  //投票商品品类下拉
  voteOption(data) {
    return request.request({
      url: `/api/front/vote/option`,
      method: "get",
      data
    });
  },

  //发布投票
  votePublish(data) {
    return request.request({
      url: `/api/front/vote/publish`,
      method: "post",
      data
    });
  },

  //动态清理缓存值
  movementsClearCache(data) {
    return request.request({
      url: `/movements/clearCache`,
      method: "get",
      data
    });
  },

  //投票接口
  movementsVote(data) {
    return request.request({
      url: `/movements/vote`,
      method: "get",
      data
    });
  },

  //投票列表
  getVotes(data) {
    return request.request({
      url: `/vote/getVotes`,
      method: "get",
      data
    });
  },

  //热力榜单
  getHotVotes(data) {
    return request.request({
      url: `/vote/getHotVotes`,
      method: "get",
      data
    });
  },
}
